package com.lin.sqltool;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Objects;

public class Start extends Application {

    @Override
    public void start(Stage primaryStage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(Start.class.getResource("/fxml/MainView.fxml"));
        Scene scene = new Scene(fxmlLoader.load(), 1480, 800);  //宽高

        primaryStage.getIcons().add(new Image(Objects.requireNonNull(Start.class.getResourceAsStream("/icon/logo.png"))));

        primaryStage.setTitle("SQL Tool!");
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        launch(args);
    }
}
